using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._FileGeodatabase
{
    /// <summary>
    /// <para>Compress File Geodatabase Data</para>
    /// <para>Compresses all the contents in a geodatabase, all the contents in a feature
    /// dataset, or an individual stand-alone feature class or table.</para>
    /// <para>压缩地理数据库中的所有内容，以及要素中的所有内容
    /// 数据集，或单个独立要素类或表。</para>
    /// </summary>    
    [DisplayName("Compress File Geodatabase Data")]
    public class CompressFileGeodatabaseData : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CompressFileGeodatabaseData()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_data">
        /// <para>Input file geodatabase data</para>
        /// <para>The geodatabase, feature dataset, feature class, or table to compress.</para>
        /// <para>要压缩的地理数据库、要素数据集、要素类或表。</para>
        /// </param>
        /// <param name="_lossless">
        /// <para>Lossless compression</para>
        /// <para><xdoc>
        ///   <para>Indicates whether lossless compression will be used.</para>
        ///   <bulletList>
        ///     <bullet_item>Unchecked—Lossless compression will not be used.</bullet_item><para/>
        ///     <bullet_item>Checked—Lossless compression will be used. This is the default.
        ///     <para>Note: For pre-10.0 file geodatabases, lossless compression is not supported. This option cannot be changed and is unchecked and disabled.</para>
        ///     </bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指示是否使用无损压缩。</para>
        ///   <bulletList>
        ///     <bullet_item>未选中—不使用无损压缩。</bullet_item><para/>
        /// <bullet_item>选中—将使用无损压缩。这是默认设置。
        ///     <para>注： 对于 10.0 之前的文件地理数据库，不支持无损压缩。此选项无法更改，并且未选中并禁用。</para>
        ///     </bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public CompressFileGeodatabaseData(object _in_data, _lossless_value? _lossless)
        {
            this._in_data = _in_data;
            this._lossless = _lossless;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Compress File Geodatabase Data";

        public override string CallName => "management.CompressFileGeodatabaseData";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_data, _lossless.GetGPValue(), _out_data];

        /// <summary>
        /// <para>Input file geodatabase data</para>
        /// <para>The geodatabase, feature dataset, feature class, or table to compress.</para>
        /// <para>要压缩的地理数据库、要素数据集、要素类或表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input file geodatabase data")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_data { get; set; }


        /// <summary>
        /// <para>Lossless compression</para>
        /// <para><xdoc>
        ///   <para>Indicates whether lossless compression will be used.</para>
        ///   <bulletList>
        ///     <bullet_item>Unchecked—Lossless compression will not be used.</bullet_item><para/>
        ///     <bullet_item>Checked—Lossless compression will be used. This is the default.
        ///     <para>Note: For pre-10.0 file geodatabases, lossless compression is not supported. This option cannot be changed and is unchecked and disabled.</para>
        ///     </bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指示是否使用无损压缩。</para>
        ///   <bulletList>
        ///     <bullet_item>未选中—不使用无损压缩。</bullet_item><para/>
        /// <bullet_item>选中—将使用无损压缩。这是默认设置。
        ///     <para>注： 对于 10.0 之前的文件地理数据库，不支持无损压缩。此选项无法更改，并且未选中并禁用。</para>
        ///     </bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Lossless compression")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _lossless_value? _lossless { get; set; }

        public enum _lossless_value
        {
            /// <summary>
            /// <para>Lossless compression</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("Lossless compression")]
            [GPEnumValue("Lossless compression")]
            _Lossless_compression,

            /// <summary>
            /// <para>Non-lossless compression</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("Non-lossless compression")]
            [GPEnumValue("Non-lossless compression")]
            value1,

        }

        /// <summary>
        /// <para>Compressed Input Data</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Compressed Input Data")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_data { get; set; }


        public CompressFileGeodatabaseData SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}